home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vidhandl / dosfont.txt < prev    next >
Encoding:
Text File  |  1999-02-03  |  3.9 KB  |  117 lines

  1. Read first FILELIST.TXT to see the files contained in this directory
  2. (DOSFONT\) with a brief description.
  3.  
  4. WARNING: This is still a beta version, I'm not sure if all programs here
  5. work fine or if they are free of bugs, the source code of all .EXE files
  6. is stored in DOSFONT\SOURCE\.
  7.  
  8. WARNING: If you run the programs in this subdirectory in a MS-DOS prompt under
  9. Windows, be sure that the MS-DOS prompt is running in full screen mode,
  10. because some functions used by these programs are not effective in a MS-DOS
  11. prompt window.
  12.  
  13. INSTALLATION:
  14.   Copy all files to a subdirectory and add that subdirectory to your path.
  15.  
  16. .FNT files:
  17.    .FNT is a file format of files containing the bitmapped character patterns
  18.  for all 256 Extended ASCII Character in raw format(it is, in the way they are
  19.  loaded in video's RAM) and with no control data. Notice that .FNT files size
  20.  is always a multiple of 256.
  21.    The .FNT files can be edited with FONTEDIT and selected with FONTSEL. They
  22.  can also be converted to C/C++ source code files with FNTTOCPP.
  23.    If you think that in this subdirectory is too few .FNT files or that
  24.  the fonts here are ugly, there are many nice fonts on the Internet. You
  25.  may try the address below:
  26.    http://www.simtel.net/msdos/screen.html
  27.  
  28.   .FNT Format:
  29.  256 * (character height) Bytes => 256 character patters
  30.  
  31.  character pattern format: (character height) bytes
  32.  byte 0 => Topmost scan line of character cell
  33.  .
  34.  .
  35.  .
  36.  byte (character height -1) => Lowermost scan line of character cell
  37.  
  38.  Each byte format:
  39.            bit 7 is the left most of character CELL scan line
  40.            bit 0 is the right most of character CELL scan line
  41.          when bit is set, pixel is on
  42.  
  43. SEL.BAT:
  44.    SEL.BAT works only in DOSFONT subdir. It is a batch files that calls
  45.  FONTSEL.EXE and after DETECT.EXE.
  46.  Example:
  47.    SEL 12
  48.  With this example, fontsel will select a character font with 12 pixels
  49.  character height.
  50.  
  51.  SEL.BAT is nothing more than:
  52. fontsel fonts\marcio%1.fnt /h%1 /r %2 %3 %4 %5 %6 %7 %8 %9
  53. detect
  54.  
  55. VOLTA.COM source code: (in Assembly language)
  56.    mov ax,0003h
  57.    int 10h
  58.    mov ax,4c00h
  59.    int 21h
  60.    int 20h
  61.  
  62. MARCIO.CPI:
  63.    MARCIO.CPI is a DOS codepage file with MARCIO.FNT, MARCIO14.FNT and
  64.  MARCIO8.FNT font information. To select it add or edit the lines in
  65.  the files:
  66.  CONFIG.SYS:
  67.    DEVICE=\DOS\DISPLAY.SYS CON=(EGA,,2)
  68.  AUTOEXEC.BAT
  69.    MODE CON CP PREP=((100)DOSFONT\MARCIO.CPI) => edit this line if DOSFONT\ isn't copied to the root of the same drive used by DOS
  70.    MODE CON CP SEL=100
  71.  
  72. FNTTOCPP:
  73.  Syntax:
  74.    FNTTOCPP <source file [.FNT]> <character size> <name> <target file[.CPP]>
  75.  Example:
  76.    FNTTOCPP linedraw 16 linedraw_dta linefont
  77.  The command line above will create LINEFONT.CPP with a array named
  78.  linedraw_dta that stores the 256 character patterns defined in LINEDRAW.FNT
  79.    Notice: You must give character_size and array name.
  80.  
  81. FONTEDIT:
  82.  Syntax:
  83.    FONTEDIT <font name[.FNT]> [Height]
  84.  Example:
  85.    FONTEDIT maluco
  86.  
  87.    You must give a name, but height is optional (default=16)
  88.  
  89.    To create new fonts, copy a existing one with copy command to the file
  90.  you want to create, as the example below:
  91.    COPY MALUCO.FNT LICOS.FNT
  92.  Then edit the created file (in the example LICOS.FNT)
  93.  
  94. FONTRESZ:
  95.  For help and syntax, type FONTRESZ with no parameters.
  96.  Example:
  97.    FONTRESZ linedraw 16 linedr32 32
  98.  
  99. FONTSEL:
  100.  Type FONTSEL /? for help and syntax.
  101.  Examples:
  102.    FONTSEL LINEDRAW
  103.    FONTSEL MARCIO8 /r /m1 /h8
  104.  
  105.  
  106. Compile also the examples in EXAMPLE\ subdir, there are many useful utilities
  107. to use with DOSFONT.
  108.  
  109. For further information read README.1ST (CRT2_0.ZIP main subdir)
  110.  
  111. DOSFONT is freeware!!!
  112. The fonts in this subdirectory can be distributed in any format and also
  113. included in other programs.
  114.  
  115. By Márcio Afonso Arimura Fialho
  116. http://pessoal.iconet.com.br/jlfialho
  117. e-mail: jlfialho@iconet.com.br OR (if the first doesn't work) jlfialho@yahoo.com